package com.bj58.mis.apm.server.kylinreceive.mapper;

import com.bj58.mis.apm.server.kylinreceive.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 存储相关查询方法
 * @author: wangxw
 **/
@Mapper
public interface KylinLogTimesMapper {

    void saveOrUpdateCubeQueryTimes(@Param("list")List<KylinQueryTimesCube> list);
    void saveOrUpdateColumnQueryTimes(@Param("list")List<KylinQueryTimesColumn> list);
    void saveOrUpdateGroupQueryTimes(@Param("list")List<KylinQueryTimesGroup> list);
    void saveOrUpdateCuboidQueryTimes(@Param("list")List<KylinQueryTimesCuboid> list);
    void saveOrUpdateSegmentQueryTimes(@Param("list")List<KylinQueryTimesSegment> list);

    void updateQueryEffectiveTimes(@Param("tableName") String tableName, @Param("coef") double coef);

    void updateWeightAndStep();
}
